<div class='panel modal-dialog modal-md ' style="top: 100px;"  aria-hidden="true">
    <div class='panel-heading bg-silver'>
        <div class='panel-heading-btn'>
            <button class='btn btn-xs btn-icon btn-circle btn-danger' onclick="$('#diaLoadModal').empty().modal('hide');" ><i class='fa fa-times'></i></button>
        </div>
        <h3 class='panel-title'><span class="color-black">分配执行</span></h3>
    </div>
    <div class='panel-body height-200 p-0'>
        <p class="m-10">本任务共 <span id="numfen">0 </span>个号码</p>
        <form class="form-horizontal">
            <div class="form-group">
                <label class="col-md-2 control-label">分配方式: </label>
                <div class="col-md-9">
                    <label class="radio-inline">
                        <input type="radio" name="fenpei" value="0" checked />平均分配
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="fenpei" value="1" />自定义分配
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-2 control-label">选择成员</label>
                <div class="col-md-9">
                <label class="control-label"><a href="#" onclick="$('#selectUser').modal('show');" class="f-s-12">+ 添加成员</a></label>
                    <div class="height-100 overflow-auto text-left" id="selectFeUse"></div>
                </div>
            </div>
        </form>
    </div>
    <div class="panel-footer">
        <span class=" pull-left m-3" >最多分配给10个员工,每个员工分配的号码量不为0</span>
        <button class="btn btn-sm btn-success pull-right m-3" onclick="queindexUser();">确定</button>
        <div class="clearfix"></div>
    </div>
</div>

<div class="modal fade" id="selectUser" data-keyboard="false" data-backdrop="static" tabindex="1">
    <div class='panel modal-dialog modal-md ' style="top: 50px;"  aria-hidden="true">
        <div class='panel-heading bg-silver'>
            <div class='panel-heading-btn'>
                <button class='btn btn-xs btn-icon btn-circle btn-danger' onclick="$('#selectUser').modal('hide');" ><i class='fa fa-times'></i></button>
            </div>
            <h3 class='panel-title'><span class="color-black">选择员工</span></h3>
        </div>
        <div class="panel-body  height-400 overflow-auto">
            <div class="row p-lg-2 m-5">
                <div class="row col-md-6 pull-left">
                    <h5 class="m-b-5">请选择要分配的同事:</h5>
                    <div class="border-solid-1 height-300 overflow-auto">
                        <div class="panel panel-inverse" data-sortable-id="tree-view-2">
                            <div class="panel-body">
                                <div id="using_json"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row col-md-5 pull-right">
                    <h5 class="m-b-5">已选择的同事:<small>请从左侧选择后添加</small></h5>
                    <div class="border-solid-1 height-300 p-3 " id="user-selectfor"></div>
                </div>
            </div>
        </div>
        <div class="panel-footer">
            <button class="btn btn-sm btn-success pull-right m-3" onclick="selectUsers()">选择</button>
            <button class="btn btn-sm btn-white pull-right m-3" onclick="$('#selectUser').modal('hide');">取消</button>
            <div class="clearfix"></div>
        </div>
    </div>
</div>

<script data-th-src="@{customer/center/salePhone/FenpeiTask.js}"></script>
